package com.seg.system.domain;

import com.seg.common.annotation.Excel;
import com.seg.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 【请填写功能名称】对象 t_equipment
 *
 * @author ruoyi
 * @date 2023-06-26
 */
public class TEquipment extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * 序号
     */
    @Excel(name = "序号")
    private Long num;

    /**
     * 设备编号
     */
    @Excel(name = "设备编号")
    private String serialNo;

    /**
     * 设备名称
     */
    @Excel(name = "设备名称")
    private String equipName;

    /**
     * 产线
     */
    @Excel(name = "产线")
    private String line;

    /**
     * 工位
     */
    @Excel(name = "工位")
    private String station;

    /**
     * 数量
     */
    @Excel(name = "数量")
    private Long quantity;

    /**
     * 单位
     */
    @Excel(name = "单位")
    private String unit;

    /**
     * 0 未使用 1使用
     */
    @Excel(name = "设备状态", readConverterExp = "0=正常,1=停用")
    private Long status;

    /**
     * $column.columnComment
     */
    @Excel(name = "sop时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date sopTime;

    /**
     * 是否删除  0正常  2删除
     */
    private String delFlag;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setNum(Long num) {
        this.num = num;
    }

    public Long getNum() {
        return num;
    }

    public void setSerialNo(String serialNo) {
        this.serialNo = serialNo;
    }

    public String getSerialNo() {
        return serialNo;
    }

    public void setEquipName(String equipName) {
        this.equipName = equipName;
    }

    public String getEquipName() {
        return equipName;
    }

    public void setLine(String line) {
        this.line = line;
    }

    public String getLine() {
        return line;
    }

    public void setStation(String station) {
        this.station = station;
    }

    public String getStation() {
        return station;
    }

    public void setQuantity(Long quantity) {
        this.quantity = quantity;
    }

    public Long getQuantity() {
        return quantity;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getUnit() {
        return unit;
    }

    public void setStatus(Long status) {
        this.status = status;
    }

    public Long getStatus() {
        return status;
    }

    public void setSopTime(Date sopTime) {
        this.sopTime = sopTime;
    }

    public Date getSopTime() {
        return sopTime;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("num", getNum())
                .append("serialNo", getSerialNo())
                .append("equipName", getEquipName())
                .append("line", getLine())
                .append("station", getStation())
                .append("quantity", getQuantity())
                .append("unit", getUnit())
                .append("status", getStatus())
                .append("sopTime", getSopTime())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
